package factory.abstract_factory;

import factory.Shape;

public class ColorFactory extends AbstractFactory {
    @Override
    public Shape getShape(String shapeType) {
        return null;
    }

    @Override
    public Color getColor(String color) {
        if("RED".equals(color)){
            return new Red();
        }else if("GREEN".equals(color)){
            return new Green();
        }else if("BLUE".equals(color)){
            return new Blue();
        }
        return null;
    }
}
